<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>v-html</h1>
        <h1 v-html="html">{{ v-html }}</h1>
        <h2>count</h2>
        <div>{{ count }}</div>
        <input type="text" v-model="count">
        <button v-on:click="toClick(msg, '点击了')">toClick</button>
        <div>{{ obj.name }}</div>
    </div>
    <script src="js/dep.js"></script>
    <script src="js/wacther.js"></script>
    <script src="js/compiler.js"></script>
    <script src="js/observer.js"></script>
    <script src="js/vue.js"></script>
    <script>
        const vm = new Vue({
            el: '#app',
            data: {
                msg: 'holle vue',
                count: 100,
                html: '<p>11111111</p>',
                obj :{}
            },
            methods: {
                toClick(msg, text){
                    this.obj.name = "111"
                }
            }
        })
    </script>
</body>
</html>